﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Wpf学习
{
    /// <summary>
    /// ObjectDockPanel.xaml 的交互逻辑
    /// </summary>
    public partial class ObjectDockPanel : UserControl
    {
        public event RoutedEventHandler CloseObjectClick = null;
        public event RoutedEventHandler SaveObjectClick = null;
        public event RoutedEventHandler CloseAndSaveObjectClick = null;
        public ObjectDockPanel()
        {
            InitializeComponent();
        }
        private void ObjectCloseButton_Click(object sender, RoutedEventArgs e)
        {
            CloseObjectClick?.Invoke(this, e);
        }

        private void ObjectCloseAndSaveButton_Click(object sender, RoutedEventArgs e)
        {
            CloseAndSaveObjectClick?.Invoke(this, e);
        }

        private void ObjectSaveButton_Click(object sender, RoutedEventArgs e)
        {
            SaveObjectClick?.Invoke(this, e);
        }
    }

}
